﻿@using CodeFarmer.Controller;
@{
    ViewBag.Title = "码农中国 - Coding最辛苦";
}
@if (UserContext.Instance.IsAuthenticated)
{
    <div>
        [<a href="/u/@UserContext.Instance.CurrentUser.ID">@UserContext.Instance.CurrentUser.NickName</a>
        | @Html.ActionLink("退出", "Logoff", "UserCenter")]</div>
}
else
{ 
    <div>
        [@Html.ActionLink("登录", "Login", "UserCenter") · @Html.ActionLink("注册", "Register", "UserCenter")]</div>
}
